package com.project.server.domain.estates;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.project.common.annotation.Excel;
import com.project.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 运营管理应急处理对象 t_estates_assets
 *
 * @author project
 */
public class TEstatesAssets extends BaseEntity {

    private static final long serialVersionUID = 7881571240060927069L;

    /**
     * 资产编号
     */
    private Long assetsNum;

    /**
     * 资产ID
     */
    private String assetsId;

    /**
     * 资产IP
     */
    @Excel(name = "资产IP")
    private String assetsIp;

    /**
     * 资产类型（00监控摄像头01人脸识别摄像头02车牌识别摄像头03门禁）
     */
    @Excel(name = "资产类型", readConverterExp = "2=卡口设备,505=园区摄像头")
    private String assetsType;

    /**
     * 资产状态（0正常1损坏2维修中）
     */
    @Excel(name = "资产状态", readConverterExp = "1=在线,2=离线,3=损坏")
    private String assetsStatus;

    /**
     * 资产端口
     */
    @Excel(name = "资产端口")
    private String assetsPort;

    /**
     * 资产账号
     */
    @Excel(name = "资产账号",readConverterExp = "assetsAccount=user")
    private String assetsAccount;

    /**
     * 资产密码
     */
    private String assetsPassword;

    /**
     * 资产名
     */
    @Excel(name = "资产名")
    private String assetsName;

    /**
     * 二维码
     */
    private String qcode;

    /**
     * 采购时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date purchaseTime;

    /**
     * 维护周期(0月 1年 2无）
     */
    @Excel(name = "维护周期", readConverterExp = "0=月,1=年,2=无")
    private  String maintenanceCycle;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;

    public Long getAssetsNum() {
        return assetsNum;
    }

    public void setAssetsNum(Long assetsNum) {
        this.assetsNum = assetsNum;
    }

    public String getAssetsId() {
        return assetsId;
    }

    public void setAssetsId(String assetsId) {
        this.assetsId = assetsId;
    }

    public void setAssetsIp(String assetsIp) {
        this.assetsIp = assetsIp;
    }

    public String getAssetsIp() {
        return assetsIp;
    }

    public void setAssetsType(String assetsType) {
        this.assetsType = assetsType;
    }

    public String getAssetsType() {
        return assetsType;
    }

    public void setAssetsStatus(String assetsStatus) {
        this.assetsStatus = assetsStatus;
    }

    public String getAssetsStatus() {
        return assetsStatus;
    }

    public void setAssetsPort(String assetsPort) {
        this.assetsPort = assetsPort;
    }

    public String getAssetsPort() {
        return assetsPort;
    }

    public void setAssetsAccount(String assetsAccount) {
        this.assetsAccount = assetsAccount;
    }

    public String getAssetsAccount() {
        return assetsAccount;
    }

    public void setAssetsPassword(String assetsPassword) {
        this.assetsPassword = assetsPassword;
    }

    public String getAssetsPassword() {
        return assetsPassword;
    }

    public void setAssetsName(String assetsName) {
        this.assetsName = assetsName;
    }

    public String getAssetsName() {
        return assetsName;
    }

    public void setQcode(String qcode) {
        this.qcode = qcode;
    }

    public String getQcode() {
        return qcode;
    }

    public Date getPurchaseTime() {
        return purchaseTime;
    }

    public void setPurchaseTime(Date purchaseTime) {
        this.purchaseTime = purchaseTime;
    }

    public String getMaintenanceCycle() {
        return maintenanceCycle;
    }

    public void setMaintenanceCycle(String maintenanceCycle) {
        this.maintenanceCycle = maintenanceCycle;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("assetsNum", getAssetsNum())
                .append("assetsId", getAssetsId())
                .append("assetsIp", getAssetsIp())
                .append("assetsType", getAssetsType())
                .append("assetsStatus", getAssetsStatus())
                .append("assetsPort", getAssetsPort())
                .append("assetsAccount", getAssetsAccount())
                .append("assetsPassword", getAssetsPassword())
                .append("assetsName", getAssetsName())
                .append("qcode", getQcode())
                .append("purchaseTime", getPurchaseTime())
                .append("maintenanceCycle", getMaintenanceCycle())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
